Skip to content
This repository was archived by the owner on Apr 18, 2020. It is now read-only.

models: add default value for Todo.created - #11

Merged
bajtos merged 1 commit into
masterfrom
feature/default-value-for-todo-created
May 29, 2014
Merged

models: add default value for Todo.created#11
bajtos merged 1 commit into
masterfrom
feature/default-value-for-todo-created

Conversation

@bajtos

@bajtos bajtos commented May 29, 2014

Copy link
Copy Markdown
Member

Modify Todo definition and set properties.created.default to
Date.now.

This commit is a follow-up for #7, which moved Todo definition
to models.json, but did not configured the default value for created.

/cc @ritch just FYI, there isn't much to review.

Modify Todo definition and set `properties.created.default` to
`Date.now`.

This commit is a follow-up for #7, which moved Todo definition
to models.json, but did not configured the default value for `created`.
bajtos added a commit that referenced this pull request May 29, 2014
…-created

models: add default value for Todo.created
@bajtos
bajtos merged commit 4bb3eaf into master May 29, 2014
@bajtos
bajtos deleted the feature/default-value-for-todo-created branch May 29, 2014 15:27
Comment thread models/todo.js

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lame that we need this...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For posterity: I filled a loopback feature request strongloop/loopback#292.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants